<%@page import="java.sql.*" %>
<%@ page import="com.hline.kbcss.MyDriver"%>
<%
try 
{
String fname=request.getParameter("fname");
	String tname=request.getParameter("tname");
	String bid=request.getParameter("bid");	
			
	String tcol=request.getParameter("tcol");
	

Statement stmt=MyDriver.getConnection("READ");
String str="delete from "+tname+" where "+tcol+"="+bid;
int rs=stmt.executeUpdate(str);
System.out.println("deleted successfully");

response.sendRedirect(""+fname+"");
	

}catch(Exception e){
	System.out.println(e);
}

%>